/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    color: #e83e8c;
    font-size: 28px;
}

/* 主导航 */
.main-nav {
    flex: 1;
    margin: 0 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-item.active {
    color: #e83e8c;
    background-color: rgba(232, 62, 140, 0.1);
}

.nav-item i {
    font-size: 18px;
}

.nav-item span {
    font-size: 14px;
}

/* 搜索框 */
.search-container {
    position: relative;
    width: 280px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    background-color: #fff;
    border-color: #e83e8c;
    box-shadow: 0 0 0 2px rgba(232, 62, 140, 0.1);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-bar input::placeholder {
    color: #999;
}

.search-bar button {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    color: #e83e8c;
    background-color: rgba(232, 62, 140, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
    display: none;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    border: 1px solid #e0e0e0;
}

.search-results.show {
    opacity: 1;
    transform: translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.search-result-artist {
    font-size: 13px;
    color: #999;
}

/* 主容器 */
.main-container {
    display: flex;
    min-height: calc(100vh - 60px); /* 减去底部播放器的高度 */
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #f8f9fa;
}

/* 页脚样式优化 */
.footer {
    padding: 10px;
    font-size: 12px;
    text-align: center;
    color: #666;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* 左侧音乐列表 */
.sidebar {
    width: 300px;
    background-color: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(229, 229, 229, 0.8);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    transition: width 0.3s ease;
}

.sidebar h2 {
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    border-bottom: 1px solid #e5e5e5;
    background: linear-gradient(90deg, #f8f9fa, #ffffff);
}

/* 拖放上传区域 */
.drop-area {
    margin: 15px;
    padding: 20px;
    border: 2px dashed #d1d1d6;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.drop-area:hover {
    border-color: #007aff;
    background-color: rgba(0, 122, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.1);
}

.drop-area.dragover {
    border-color: #34c759;
    background-color: rgba(52, 199, 89, 0.1);
}

.drop-area-content i {
    font-size: 40px;
    color: #86868b;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.drop-area:hover i,
.drop-area.dragover i {
    color: #007aff;
    transform: scale(1.1) rotate(5deg);
}

.drop-area-content p {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.drop-area-content .small-text {
    font-size: 13px;
    color: #86868b;
    font-weight: normal;
}

.music-list {
    flex: 1;
    padding: 0;
}

/* 空数据提示样式 */
.empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.empty-message:hover .empty-icon {
    transform: scale(1.1) rotate(5deg);
}

.empty-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.empty-subtext {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 250px;
}

.music-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f2f2f7;
    position: relative;
    overflow: hidden;
    will-change: transform, background-color;
}

.music-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.music-item:hover::before {
    left: 100%;
}

.music-item:hover {
    background-color: #f9f9f9;
    transform: translateX(2px);
}

.music-item.active {
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.15), rgba(255, 255, 255, 0.5));
    border-left: 4px solid #007aff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.music-item img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.2);
}

.music-item.active img {
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.music-info {
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.music-duration {
    font-size: 12px;
    color: #86868b;
    margin-left: 10px;
    white-space: nowrap;
    min-width: 45px;
    text-align: right;
}

.music-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.music-item.active .music-title {
    color: #007aff;
}

.music-artist {
    font-size: 13px;
    color: #86868b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.music-item:hover .music-artist {
    color: #555;
}

/* 音乐详情区域 */
.player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/default-cover.png');
    background-size: cover;
    background-position: center;
    filter: blur(80px) opacity(10%);
    z-index: 0;
}

/* 专辑封面 */
.album-cover {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 35px;
    perspective: 1000px;
    z-index: 1;
}

/* 专辑封面装饰 - 黑胶唱片效果 */
.album-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background-color: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    border: 5px solid #ffffff;
}

.album-disc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: #666;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.album-cover img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    border: 8px solid #ffffff;
}

/* 专辑封面动画效果 */
@keyframes albumRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.album-cover.playing img {
    animation: albumRotate 20s linear infinite;
}

.album-cover:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(232, 62, 140, 0.3);
}

.album-cover:hover::after {
    opacity: 0.3;
}

/* 歌曲信息 */
.song-info {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    max-width: 500px;
    padding: 0 20px;
}

.song-info h3 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.song-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 6px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    z-index: 1;
    position: relative;
}

.action-btn {
    background-color: #2d2d2d;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
}

.action-btn:hover {
    background-color: #3d3d3d;
    transform: scale(1.1);
    color: #fff;
}

.action-btn.favorite.active {
    color: #e83e8c;
}

/* 歌词容器 */
.lyrics-container {
    width: 100%;
    max-width: 800px;
    height: 180px;
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 229, 229, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

/* 隐藏滚动条但保留功能 */
.lyrics-container::-webkit-scrollbar {
    width: 6px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: transparent;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.lyrics-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 歌词渐变遮罩 */
.lyrics-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
    z-index: 1;
    pointer-events: none;
}

.lyrics-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    z-index: 1;
    pointer-events: none;
}

.lyrics-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.lyrics {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 100%;
}

.lyric-line {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 8px 20px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lyric-line.active {
    color: #e83e8c;
    font-size: 18px;
    font-weight: 600;
    transform: scale(1.05);
}

.lyric-line.loading {
    color: #999;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 进度条 */
.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.progress-container span {
    font-size: 14px;
    color: #666;
    width: 50px;
    font-weight: 500;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin: 0 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.progress-bar:hover {
    background-color: #d0d0d0;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e83e8c, #ff7eb3);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(232, 62, 140, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
}

.progress-bar:hover .progress-thumb {
    opacity: 1;
}

/* 控制按钮 */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.control-btn {
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.1);
    color: #333;
}

.play-btn {
    background: linear-gradient(135deg, #e83e8c, #ff7eb3);
    color: #fff;
    font-size: 32px;
    width: 80px;
    height: 80px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 25px;
    border: none;
    border-radius: 50%;
    flex-shrink: 0;
}

.play-btn:hover {
    background: linear-gradient(135deg, #d1347b, #e83e8c);
    color: #fff;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 62, 140, 0.35);
}

/* 音量控制 */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.volume-container:hover i {
    color: #333;
}

.volume-container i {
    color: #666;
    margin: 0 10px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.volume-bar:hover {
    background-color: #d0d0d0;
}

.volume {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 70%;
    background: linear-gradient(90deg, #e83e8c, #ff7eb3);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.volume-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}

.volume-bar:hover .volume-thumb {
    opacity: 1;
}

/* 底部 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(229, 229, 229, 0.8);
    font-size: 13px;
    color: #86868b;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* 播放列表侧边栏样式 */
.playlist-sidebar {
    position: fixed;
    top: 60px; /* 导航栏高度 */
    left: 0;
    width: 250px;
    height: calc(100vh - 60px); /* 减去导航栏高度 */
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    z-index: 999;
    transform: translateX(-250px); /* 默认隐藏 */
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

/* 播放列表头部样式 */
.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.playlist-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 播放列表控制按钮样式 */
.playlist-control-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.playlist-control-btn:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

/* 内容包装器样式 */
.content-wrapper {
    flex: 1;
    transition: transform 0.3s ease;
    transform: translateX(0);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 播放列表切换按钮样式 */
.toggle-playlist-btn {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background-color: #e83e8c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 2px 10px rgba(232, 62, 140, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-playlist-btn:hover {
    background-color: #d1347b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.4);
}

/* 底部播放器中的播放列表按钮 */
#show-playlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 10px;
}

#show-playlist-btn:hover {
    color: #e83e8c;
    background-color: rgba(232, 62, 140, 0.1);
}

/* 拖放上传区域样式调整 */
#drop-area {
    margin: 15px;
    padding: 20px;
    border: 2px dashed #d1d1d6;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

#drop-area:hover {
    border-color: #e83e8c;
    background-color: rgba(232, 62, 140, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(232, 62, 140, 0.1);
}

#drop-area i {
    font-size: 40px;
    color: #86868b;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

#drop-area:hover i {
    color: #e83e8c;
    transform: scale(1.1) rotate(5deg);
}

#drop-area p {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 5px;
}

#drop-area small {
    font-size: 13px;
    color: #86868b;
}

#drop-area .upload-text {
    color: #e83e8c;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* 调整主容器的高度，确保内容不被底部播放器遮挡 */
.main-container {
    padding-bottom: 100px;
}

/* 确保底部播放器在侧边栏之上 */
.bottom-player {
    z-index: 1000;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8ad;
}

/* 基础动画优化 */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 修复iOS上的滚动问题 */
.sidebar,
.lyrics-container {
    -webkit-overflow-scrolling: touch;
}

/* 过渡动画优化 */
.search-results,
.music-item,
.control-btn,
.volume-container,
.progress-bar,
.album-cover,
.song-info,
.player-container {
    will-change: transform, opacity;
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* 响应式设计 - 手机端优化 */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        background: linear-gradient(180deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    .main-container {
        flex-direction: column;
        min-height: calc(100vh - 50px); /* 减去footer的高度 */
        overflow: hidden;
        background: transparent;
    }
    
    .navbar {
        padding: 12px 15px;
        background-color: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .logo {
        font-size: 20px;
    }
    
    .search-container {
        margin: 0 15px 15px;
        max-width: none;
    }
    
    .search-bar {
        padding: 9px 15px;
        font-size: 14px;
    }
    
    .sidebar {
        width: 100%;
        height: 45vh;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 0;
        background-color: rgba(255, 255, 255, 0.97);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    }
    
    .sidebar h2 {
        padding: 16px 20px;
        font-size: 18px;
        background: linear-gradient(90deg, #f8f9fa, #ffffff);
        border-bottom: 1px solid #f2f2f7;
    }
    
    .music-list {
        padding: 0;
    }
    
    .music-item {
        padding: 16px 20px;
        margin-bottom: 0;
        border-bottom: 1px solid #f0f0f5;
        transition: all 0.2s ease;
        /* 为触摸设备优化交互区域 */
        min-height: 70px;
    }
    
    .music-item:active {
        background-color: rgba(0, 122, 255, 0.08);
        transform: translateX(0);
    }
    
    .music-item.active {
        background: linear-gradient(90deg, rgba(0, 122, 255, 0.2), rgba(255, 255, 255, 0.7));
    }
    
    .music-item img {
        width: 54px;
        height: 54px;
        border-radius: 12px;
        margin-right: 15px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }
    
    .music-title {
        font-size: 17px;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .music-artist {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .player-container {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        background-color: rgba(255, 255, 255, 0.85);
    }
    
    .album-cover {
        width: 200px;
        height: 200px;
        margin: 15px auto 20px;
    }
    
    .song-info {
        margin-bottom: 20px;
    }
    
    .song-info h3 {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .song-info p {
        font-size: 16px;
        color: #666;
    }
    
    .lyrics-container {
        height: 140px;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        border: 1px solid rgba(229, 229, 229, 0.9);
    }
    
    .lyrics {
        padding: 50px 15px;
    }
    
    .lyric-line {
        font-size: 16px;
        line-height: 2;
        padding: 8px 15px;
    }
    
    .lyric-line.active {
        font-size: 19px;
    }
    
    .progress-container {
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .progress-bar {
        height: 8px;
        margin: 0 10px;
        border-radius: 4px;
    }
    
    .controls {
        margin-bottom: 15px;
    }
    
    .control-btn {
        font-size: 24px;
        width: 56px;
        height: 56px;
        margin: 0 12px;
        padding: 0;
        flex-shrink: 0;
    }
    
    .play-btn {
        font-size: 30px;
        width: 70px;
        height: 70px;
        margin: 0 25px;
        padding: 0;
        flex-shrink: 0;
    }
    
    .footer {
        padding: 12px;
        font-size: 12px;
        text-align: center;
        color: #86868b;
        background-color: rgba(255, 255, 255, 0.9);
        border-top: 1px solid rgba(229, 229, 229, 0.8);
        position: relative;
        z-index: 10;
    }
    
    /* 移动端滚动条优化 */
    .sidebar::-webkit-scrollbar {
        width: 4px;
    }
    
    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(0, 122, 255, 0.3);
        border-radius: 2px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 350px;
    }
    
    .album-cover {
        width: 220px;
        height: 220px;
    }
}

/* 大屏设备优化 */
@media (min-width: 1400px) {
    .main-container {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .sidebar {
        width: 450px;
    }
    
    .album-cover {
        width: 300px;
        height: 300px;
    }
}